import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:push_button/push_button.dart';
import '../theme/custom_theme.dart';

class VButton {

  static Widget primary(
    String btnText, {
    double? width,
    double? height,
    Widget? child,
    required void Function() onPressed,
  }) {
    return PushButton(
      color: CustomTheme.colorSchema.primaryColor,
      width: width ?? 250.w,
      height: height ?? 50.h,
      shape: BoxShape.rectangle,
      onPressed: onPressed,
      radius: 5.0,
      child: child ??
          Text(
            btnText,
            style: TextStyle(color: Colors.white, fontSize: 14.sp),
          ),
    );
  }


}
